<template>
  <div class="h-full mt-3">
    <n-space>
      <n-input v-model:value="pie" autosize type="textarea" placeholder="请输入要复制的内容吧" />
      <n-input v-model:value="gantt" autosize type="textarea" placeholder="请输入a要复制的内容吧" />
    </n-space>
  </div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import { createPieCode, createGanttCode } from '../../assets/data';

const pie = ref('');
const gantt = ref('');
const createCode = () => {
  pie.value = createPieCode();
  gantt.value = createGanttCode();
};

onMounted(() => {
  createCode();
});
</script>

<style scoped></style>
